package com.gaocf.designpatterns.create.singleton;


/**
 * 静态内部类：线程安全，效率高，延迟加载
 */
class Singletion3 {
    private static class InnerSingletonClass {
        private static Singletion3 instance = new Singletion3();
    }

    private Singletion3() {

    }

    public static Singletion3 getInstance() {
        return InnerSingletonClass.instance;
    }
}